package com.luo.mapper;

import com.luo.pojo.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentMapper {
    List<Department> selectDepartmentList(@Param("departmentName") String departmentName,
                                          @Param("departmentCode") String departmentCode,
                                          @Param("index") int index,
                                          @Param("limit") int limit);
    int selectDepartmentCount(@Param("departmentName") String departmentName,
                              @Param("departmentCode") String departmentCode);
    void insert(Department department);
    void delete(Integer id);
    void update(Department department);

    List<Department> selectDepartmentNames();
}
